// Copyright (C) 2025, ZWSOFT Co., LTD.(Guangzhou)
// Licensed under the MIT License. See LICENSE in the project root for license information.

using MaterialDesignThemes.Wpf;

namespace TestClient.ViewModel
{
    public interface ISnackNotifyService
    {
        ISnackbarMessageQueue? MessageQueue { set; }

        void PushMessage(string message);
    }

    class SnackNotifyService : ISnackNotifyService
    {
        public ISnackbarMessageQueue? MessageQueue { private get; set; }

        public void PushMessage(string message)
        {
            MessageQueue?.Enqueue(message);
        }
    }
}
